package com.google.guava.eventbus;

import com.google.common.eventbus.EventBus;
import com.google.guava.eventbus.service.QueryService;
import com.google.guava.eventbus.service.RequestQueryHandler;

/**
 * @author fuc
 * @create 2020-10-06
 */
public class ComEachOtherEventBusExample {

  public static void main(String[] args) {
    final EventBus eventBus = new EventBus();
    QueryService queryService = new QueryService(eventBus);
    eventBus.register(new RequestQueryHandler(eventBus));
    queryService.query("110110110");
  }
}
